package com.fypg.medicalplatform.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

/**
 * 卫健小程序的启动类
 *
 * @author 盘古
 */

@SuppressWarnings("SpringComponentScan") // 忽略 IDEA 无法识别 ${fypg.info.base-package}
@SpringBootApplication
@ComponentScan(basePackages = {"${fypg.info.base-package}.server", "${fypg.info.base-package}.module"}
        , excludeFilters = @ComponentScan.Filter(type = FilterType.REGEX, pattern = ".*\\.controller\\.admin\\..*")
)
@EnableDiscoveryClient
public class FypgMedicalPlatformAPIApplication {

    public static void main(String[] args) {
        SpringApplication.run(FypgMedicalPlatformAPIApplication.class, args);
//        new SpringApplicationBuilder(FypgMedicalPlatformApplication.class)
//                .applicationStartup(new BufferingApplicationStartup(20480))
//                .run(args);
    }

}
